package com.billing.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.billing.model.dao.UserScanBeanMapper;
import com.billing.model.entity.TUserScan;
import com.billing.model.entity.TUserScanBuffer;
import com.billing.service.UserScanService;
@Service
public class UserScanServiceImpl implements UserScanService {

	@Resource
	private UserScanBeanMapper 	userScanBeanMapper; 
	public int insertTUserScan(TUserScan userScan) {
		return userScanBeanMapper.insertTUserScan(userScan);
	}
	public TUserScan selectUserScanByUid(String userid) {
		return userScanBeanMapper.selectUserScanByUid(userid);
	}
	public int updateUserScan(TUserScan userScan) {
		return userScanBeanMapper.updateUserScan(userScan);
	}
	public TUserScan selectUserScanById(String id) {
		return userScanBeanMapper.selectUserScanById(id);
	}
	@Override
	public int updateUserScanByUseridAndType(TUserScan userScan) {
		return userScanBeanMapper.updateUserScanByUseridAndType(userScan);
	}
	@Override
	public int insertByBuffer(TUserScanBuffer scanBuffer) {
		return userScanBeanMapper.insertByBuffer(scanBuffer);
	}
	@Override
	public int updateByBuffer(TUserScanBuffer scanBuffer) {
		return userScanBeanMapper.updateByBuffer(scanBuffer);
	}
	
}
